package com.xjoyt.pay.share.interfaces;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.share.params.BucketPageParam;
import com.xjoyt.pay.share.po.Bucket;

/**
 * 行政区划接口
 * 
 * @author Administrator
 *
 */
public interface BucketContract {

	@RequestMapping("loadPage")
	PageResult<Bucket> loadPage(PageParam<BucketPageParam> param);

	@RequestMapping(value = "setDefault/{id}")
	ExecuteResult<?> setDefault(@PathVariable("id") String id);

	@RequestMapping(value = "save")
	ExecuteResult<Bucket> save(Bucket param);

	@RequestMapping("remove/{id}")
	ExecuteResult<?> remove(@PathVariable("id") String id);

	/**
	 * 获取默认储存
	 * 
	 * @return
	 */
	@RequestMapping("getDefault")
	Bucket getDefault();
}
